*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    width: 100vw;
    height: 100vh;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container{
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 自动折行 */
    flex-wrap: wrap;
}
.box{
    width: 16px;
    height: 16px;
    background-color: #1d1d1d;
    margin: 2px;
    box-shadow: 0 0 2px #000;
    transition: 1s all ease-in-out;
}
.box:hover{
    transition-duration: 0s;
}